<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button id="gg">点击获取</button>
    <script src="./jquery.min.js"></script>
    <script>
        $('#gg').click(function () {
            console.log(123);
            $.ajax({
                url: 'http://localhost:3000/foods/searchFoods',
                type: 'post',
                data: {
                    // usersId: '601baf6b920d000012004d02',
                    // foodsId: '601a4773bc50000049002b53',
                    // // foodsId: '601a46338e55000018003e18',
                    // content: '很好的菜谱',
                    // focus: 1,
                    pageSize: 10,
                    currentPage: 1,
                    content: '面'
                },
                success(res) {
                    console.log(res);
                }
            })
        })
    </script>
</body>

</html>